﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

 <script src="<%=Url.Content("~/Scripts/Utility.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/knockout/knockout.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/knockout/knockout.mapping.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Scripts/jquery.validation/jquery.validationEngine-en.js")%>"
        type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.validation/jquery.validationEngine.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/chosen/chosen.jquery.min.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.js")%>" type="text/javascript"></script>
  
      <script src="<%=Url.Content("~/Scripts/ckeditor/ckeditor.js")%>" type="text/javascript"></script>
       <script type="text/javascript" src="<%=Url.Content("~/Scripts/ckeditor/adapters/jquery.js")%>"></script> 
    
 <script type="text/javascript">
     function checkForm() {
        
         $(document).ready(function() {
             if ($('#description').val().length > 3) {
                 $('#description_validate').val('ok');
             }
             else {
                 $('#description_validate').val('');
             }
             if ($('#descriptionlocal').val().length > 3) {
                 $('#descriptionlocal_validate').val('ok');
             }
             else {
                 $('#descriptionlocal_validate').val('');
             }
             
             
         });

     }
     $(document).ready(function() {
        
        $('.ckeditors').ckeditor();
         
         jQuery("#formID").validationEngine({
             prettySelect: true,
             useSuffix: "_chzn",
             promptPosition : "topLeft"
            
         });
         
         $(".chzn-nosearch").chosen({ disable_search_threshold: 3, allow_single_deselect: true });
         //End Data
         $(".chosen-select").chosen({
             allow_single_deselect: true
         });
         

     });
 </script>  